package com.example.observer;

/**
 * Created by Risky57 on 2017/4/28.
 */

public class StudentMXY implements Observer {
    @Override
    public void notify (String msg) {
        if (msg.equals("下课"))
        System.out.println("下楼抽烟, 完事喝瓶可乐");
        if (msg.equals("上课"))
            System.out.println("睡觉");
    }
}
